#include <stdio.h>

void main(){
    int k, z, h,c;

    k = 0;
    z = 0;
    h = 0;

    while((c = getchar()) != EOF){
        if(c == ' ')
            ++k;
       if(c == '\t')
            ++z;
        if(c == '\n')
            ++h;    
    }


     printf("k:%d z:%d h:%d\n", k, z,h );   
}